package com.xxc.fegin;

import com.xxc.entity.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author xiangcheng
 * @version 2022/6/21 17:50
 * @since JDK8
 */
@FeignClient("TAGS")
public interface TagClient {
    //根据标签id查询标签信息
    @GetMapping("/tags/{id}")
    public Tag tag(@PathVariable("id") Integer id);
}
